package com.spaceobj.project.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hrzhang
 */
@Data
@Builder
@TableName(value = "sys_search_content")
@AllArgsConstructor
@NoArgsConstructor
public class SysSearchContent {
  @TableId(value = "id")
  private long id;

  @TableField(value = "content")
  private String content;

  @TableField(value = "weights")
  private Integer weights;

  @TableField(value = "create_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @TableField(value = "update_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @TableField(value = "create_user")
  private String createUser;

  @TableField(value = "update_user")
  private String updateUser;
}
